package com.aosan.website.admin.service.impl

import com.aosan.website.admin.entity.SysMenuEntity
import com.aosan.website.admin.mapper.SysMenuMapper
import com.aosan.website.admin.service.MenuService
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
import org.springframework.stereotype.Service

@Service
class SysMenuServiceImpl : MenuService, ServiceImpl<SysMenuMapper, SysMenuEntity>() {

    override fun getMenuList(): List<SysMenuEntity> {
        return list(QueryWrapper<SysMenuEntity>()
                .eq("status", "ENABLE")
                .eq("menu_flag", "Y")
        )
    }

}